<? $cnt = count($recommended); ?>

<div id="banner">


    <ul class="rslides">

        <? for ($i = 0; $i < $cnt; $i++): ?>
                <li>
                    <?
                    $obj_name = URLify::filter($recommended[$i]->object_name);
                    $href = lang_url('accommodation/' . $obj_name . '-' . $recommended[$i]->object_ID . '?preview=1&room_id=' . $recommended[$i]->lowest_price_room_id);
                    $thumbnail = HOST_URL_HOTELS . 'gallery/' . $recommended[$i]->photo_path . '/thumb_539x325/' . $recommended[$i]->photo_name;

                    $stars = (int) $recommended[$i]->object_number_of_stars;
                    ?>


                    <div class="info">

                        <div class="price">
                            <div class="inner">
                                <div>&euro; <?= round($recommended[$i]->lowest_price) ?> </div>
                                <div>
                                    <?
                                    $selling_type = lang('room.selling_type_short');
                                    echo $selling_type[(int) $recommended[$i]->lowest_selling_billing_type_ID];
                                    ?></div>
                            </div>
                        </div>

                        <div class="inner">
                            <h3><?= $recommended[$i]->object_name ?></h3>
                            <div class="line"></div>
                            <? if ($stars > 0): ?>
                                <p>Stars:&nbsp;&nbsp;<span class="stars small star-<?= $stars ?>"></span></p>
                            <? endif; ?>
                            <p><?= $recommended[$i]->lowest_service_name ?></p>
                            <div class="line"></div>
                            <a href="<?= $href ?>" class="btn">Book NOW</a>
                        </div>
                    </div>

                    <img src="<?= $thumbnail ?>" alt="<?= $recommended[$i]->object_name ?>" /> 
                </li>
            <? endfor; ?> 

    </ul>
</div>